<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<sj:head locale="es" jqueryui="true" jquerytheme="cupertino" />
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="estilo/style.css" />
</head>

<body>
<div id='resultado_gd_aprxss' >  
<table width="100%">
<tr Height='10px' >
			<td width='5%' class='tabla_th1' >Codigo</td>
			<td width='10%' class='tabla_th1' >Contrato</td>
			<td width='30%' class='tabla_th1' >Cliente</td>
			<td width='15%' class='tabla_th1' >Vendedor</td>
		    <td width='10%' class='tabla_th1' >Observaciones</td>
		    <td width='10%' class='tabla_th1' >Fecha</td>
		    <td width='10%' class='tabla_th1' >Equipos</td>
		    <td width='10%' class='tabla_th1' >Materiales</td>
		    <td width='10%' class='tabla_th1' >Comision</td>
		    <td width='10%' class='tabla_th1' >Recurrente</td>
		    <td width='10%' class='tabla_th1' >Instalacion</td>
		    <td width='10%' class='tabla_th1' colspan="2">Accion</td>
</tr>
 <s:iterator var="outer2" status="i_status" value="lst_presupuestos" >
        <s:set name="n_ctd"><s:property value="#outer2.id" /></s:set>
        <s:set name="n_cod"><s:property value="#outer2.codigo" /></s:set>
	    <s:set name="n_sol"><s:property value="#outer2.sucursal" /></s:set>
	    <s:set name="n_contrato"><s:property value="#outer2.beneficio" /></s:set>
	     
	    <s:if test="#i_status.even"><tr Height='10px' class='filaint_1' ></s:if><s:else><tr Height='10px' class='filaint_2' ></s:else>
	   	   <td width='5%' >
	   	       <s:property value="#outer2.codigo" />
	   	   </td>
	   	    <td width='10%' >
		      <s:property value="#outer2.sucursal" />
		   </td>
		   <td width='30%' >
			   <s:property value="#outer2.prospecto" />  
		   </td>
		    <td width='10%' >	
			  <s:property value="#outer2.vendedor" />
		   </td>
		   <td width='10%' >	
			  <s:property value="#outer2.obs" />
		   </td>
		   <td width='10%' >
		      <s:property value="#outer2.fecha" />&nbsp<s:property value="#outer2.hora" />
		   </td>
		   <td width='10%' >
		       <s:property value="#outer2.equipos" />
		    </td>
		    <td width='10%' >
		       <s:property value="#outer2.materiales" />
		    </td>
		     <td width='10%' >
		       <s:property value="#outer2.comision" />
		    </td>
		     <td width='10%' >
		       <s:property value="#outer2.recurrente" />
		    </td>
		    <td width='10%' >
		       <s:property value="#outer2.instalacion" />
		    </td>
		    <td width='10%' >
		      <sj:div id='resultado_xxxx_ssx%{n_ctd}' >  
			       <s:form action="actualizar_stx_presupuesto2.action" id="form_guardar_stx_ss%{n_ctd}" theme="simple" >
			            <s:hidden name='solicitud.codigo' id='txtcod_sol_%{n_ctd}'  value='%{n_sol}' ></s:hidden>
			            <s:hidden name='solicitud.contrato' id='txtcontrato_%{n_ctd}'  value='%{n_contrato}' ></s:hidden>
			            <s:hidden name='cod_presupuesto' id='txtcod_sitesx_%{n_ctd}'  value='%{n_cod}' ></s:hidden>
			            <sj:submit cssClass="boton_sia1" targets="resultado_xxxx_ssx%{n_ctd}" indicator="indicator_aprxss" button="true" value="Aprobar" theme="simple" />
			            <img id="indicator_aprxss" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
			       </s:form>  
			       <s:form action="rechazar_presupuesto2.action" id="form_rechazar_stx_ss%{n_ctd}" theme="simple" >
			            <s:hidden name='solicitud.codigo' id='txtcod_sol_%{n_ctd}'  value='%{n_sol}' ></s:hidden>
			            <s:hidden name='solicitud.contrato' id='txtcontrato_%{n_ctd}'  value='%{n_contrato}' ></s:hidden>
			            <s:hidden name='cod_presupuesto' id='txtcod_sitesx_%{n_ctd}'  value='%{n_cod}' ></s:hidden>
			            <sj:submit cssClass="boton_sia1" targets="resultado_xxxx_ssx%{n_ctd}" indicator="indicator_aprxss_re" button="true" value="Rechazar" theme="simple" />
			            <img id="indicator_aprxss_re" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
			       </s:form>  
			   </sj:div>     
		    </td>
	     </tr>
</s:iterator>
 </table>
</div>
</body>
</html>
